/***************************************************************
 *  文件：button_api.h
 *  功能: 按键
 *  作者：kmist
 *  日期: 2020/3/21
 ****************************************************************/
#ifndef __BUTTON_API_H__
#define __BUTTON_API_H__
#include <time.h>
#include "sntp_api.h"


#define GPIO_INPUT_IO_0 0
#define GPIO_INPUT_IO_1 12
#define GPIO_INPUT_IO_2 13
#define GPIO_INPUT_PIN_SEL ((1ULL << GPIO_INPUT_IO_0) | (1ULL << GPIO_INPUT_IO_1) | (1ULL << GPIO_INPUT_IO_2))

#define BUTTON_SELECT   0
#define BUTTON_ENTER    12
#define BUTTON_EXIT     13
extern struct tm g_time;
extern struct tm g_alarm;
void button_init(void);
#endif
